package com.suixun.vo;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.LinkedList;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.codehaus.jackson.map.ObjectMapper;

import com.suixun.dao.LogonlinepayMapper;
import com.suixun.entity.LogonlinepayExample;
import com.suixun.entity.OnlinePayInfo;
import com.suixun.util.DateUtil;

import cn.jiguang.common.utils.StringUtils;

/**
 * 
 * <p>Title: OnlinepayInfo</p>
 * <p> 功能描述:线上购买VO，用于返回到页面展示 </p> 
 * @author	陈显强
 * @date	2016年12月19日下午1:50:43
 * @version 1.0
 */
public class OnlinepayVO  {
	
	private static Log logger = LogFactory.getLog(OnlinepayVO.class);
	
	private String dis;//备注（购买，续费等）
	
	private String devicetype;//设备类型
	
	private String factory;//生产商
	
	private String paystatus;//付款状态
	
	private String paymoney;//付款金额
	
	private String smartcardprice;//智能学生证价格
	
	private String smartcardnum;//智能学生证数量
	
	private String whitecard1price;//2.4G考勤卡价格
	
	private String whitecard1num;//2.4G考勤卡数量
	
	private String whitecard2price;//13.56考勤卡价格
	
	private String whitecard2num;//13.56考勤卡数量
	
	private String paytime;//购买日期
	
	private String peoplename;//联系人姓名
	
	private String peopletel;//联系电话
	
	private String deliveryaddr;//收货地址
	
	private String mdtid;//设备IMEI号
	
	private String deliveryno;//快递单号
	
	private String sendtime;//发货时间
	
	private String orderno;//订单号
	
	private String deviceid;//大于0 换学生证 等于0购买
	
	private Integer status;//状态1正常0取消,订单退款中status=-1,退款失败status=-2,退款成功status=2
	
	private String failReason;//退款失败的原因说明
	
	public String getDeviceid() {
		return deviceid;
	}

	public void setDeviceid(String deviceid) {
		this.deviceid = deviceid;
	}

	public String getDevicetype() {
		return devicetype;
	}

	public void setDevicetype(String devicetype) {
		this.devicetype = devicetype;
	}

	public String getFactory() {
		return factory;
	}

	public void setFactory(String factory) {
		this.factory = factory;
	}

	public String getPaystatus() {
		return paystatus;
	}

	public void setPaystatus(String paystatus) {
		this.paystatus = paystatus;
	}

	public String getPaymoney() {
		return paymoney;
	}

	public void setPaymoney(String paymoney) {
		this.paymoney = paymoney;
	}

	public String getPaytime() {
		return paytime;
	}

	public void setPaytime(String paytime) {
		this.paytime = paytime;
	}

	public String getPeoplename() {
		return peoplename;
	}

	public void setPeoplename(String peoplename) {
		this.peoplename = peoplename;
	}

	public String getPeopletel() {
		return peopletel;
	}

	public void setPeopletel(String peopletel) {
		this.peopletel = peopletel;
	}

	public String getDeliveryaddr() {
		return deliveryaddr;
	}

	public void setDeliveryaddr(String deliveryaddr) {
		this.deliveryaddr = deliveryaddr;
	}

	public String getMdtid() {
		return mdtid;
	}

	public void setMdtid(String mdtid) {
		this.mdtid = mdtid;
	}

	public String getDeliveryno() {
		return deliveryno;
	}

	public void setDeliveryno(String deliveryno) {
		this.deliveryno = deliveryno;
	}

	public String getSendtime() {
		return sendtime;
	}

	public void setSendtime(String sendtime) {
		this.sendtime = sendtime;
	}

	public String getOrderno() {
		return orderno;
	}

	public void setOrderno(String orderno) {
		this.orderno = orderno;
	}

	public String getSmartcardprice() {
		return smartcardprice;
	}

	public void setSmartcardprice(String smartcardprice) {
		this.smartcardprice = smartcardprice;
	}

	public String getSmartcardnum() {
		return smartcardnum;
	}

	public void setSmartcardnum(String smartcardnum) {
		if(smartcardnum != null && !"0".equals(smartcardnum)) {
			this.devicetype = "智能学生证";
			this.factory = "智能学生证";
		}
		this.smartcardnum = smartcardnum;
	}

	public String getWhitecard1price() {
		return whitecard1price;
	}

	public void setWhitecard1price(String whitecard1price) {
		this.whitecard1price = whitecard1price;
	}

	public String getWhitecard1num() {
		return whitecard1num;
	}

	public void setWhitecard1num(String whitecard1num) {
		if(whitecard1num != null && !"0".equals(whitecard1num)) {
			if(this.devicetype != null) {
				this.devicetype = new StringBuffer().append(this.devicetype).append("/考勤卡").toString();
			}else {
				this.devicetype = "考勤卡";
			}
			if(this.factory != null) {
				this.factory = new StringBuffer().append(this.factory).append("/2.4G考勤卡").toString();
			}else {
				this.factory = "2.4G考勤卡";
			}
		}
		this.whitecard1num = whitecard1num;
	}

	public String getWhitecard2price() {
		return whitecard2price;
	}

	public void setWhitecard2price(String whitecard2price) {
		this.whitecard2price = whitecard2price;
	}

	public String getWhitecard2num() {
		return whitecard2num;
	}

	public void setWhitecard2num(String whitecard2num) {
		if(whitecard2num != null && !"0".equals(whitecard2num)) {
			if(this.devicetype != null) {
				this.devicetype = new StringBuffer().append(this.devicetype).append("/考勤卡").toString();
			}else {
				this.devicetype = "考勤卡";
			}
			if(this.factory != null) {
				this.factory = new StringBuffer().append(this.factory).append("/13.56考勤卡").toString();
			}else {
				this.factory = "13.56考勤卡";
			}
		}
		this.whitecard2num = whitecard2num;
	}

	public String getDis() {
		return dis;
	}

	public void setDis(String dis) {
		this.dis = dis;
	}
	
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getFailReason() {
		return failReason;
	}

	public void setFailReason(String failReason) {
		this.failReason = failReason;
	}
	
}
